package com.zxy.barometer.message.response;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * @author zxy
 */
@Data
@ApiModel(value = "站点信息")
public class StationResp implements Serializable {
    private String id;
    @ApiModelProperty(value = "城市跳转地址")
    private String url;
    @ApiModelProperty(value = "城市编码")
    private String code;
    @ApiModelProperty(value = "城市名称")
    private String city;
    @ApiModelProperty(value = "省份名称")
    private String province;

    public String getUrl() {
        return "http://www.nmc.cn" + url;
    }
}
